package com.woniuxy.project.campus.canteenOrder.service;

import com.woniuxy.project.campus.canteenModelform.SelectOrderByStateForm;
import com.woniuxy.project.campus.canteenOrder.dto.OrderInfoDto;
import com.woniuxy.project.campus.canteenOrder.dto.SelectOrderByStateDto;
import com.woniuxy.project.campus.canteenOrder.model.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.project.campus.canteenModelform.AddOrderForm;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 猫将军
 * @since 2025年02月17日
 */
public interface OrderInfoService extends IService<OrderInfo> {

    OrderInfoDto addOrder(Integer accountId, AddOrderForm form) throws Exception;

    String payOrder(Integer accountId, String orderNum) throws Exception;

    void updateOrderState(String outTradeNo, LocalDateTime localDateTime) throws Exception;

    List<SelectOrderByStateDto> selectOrderByState(Integer accountId);

    String getTodayTotalIncome(Integer accountId) throws Exception;

    List<SelectOrderByStateForm> selectOrderByState1(Integer accountId);
}
